package com.AppliGestion.client;

import com.AppliGestion.shared.FieldVerifier;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;


import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.events.ClickEvent;
import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.HStack;
import com.smartgwt.client.widgets.layout.VLayout;
import com.smartgwt.client.widgets.layout.VStack;
import com.smartgwt.client.widgets.menu.Menu;
import com.smartgwt.client.widgets.menu.MenuBar;
import com.smartgwt.client.widgets.tile.TileGrid;
import com.smartgwt.client.widgets.tree.TreeGrid;
import com.smartgwt.client.widgets.tree.TreeGridField;



/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Base implements EntryPoint {
	/**
	 * The message displayed to the user when the server cannot be reached or
	 * returns an error.
	 */
	private static final String SERVER_ERROR = "An error occurred while "
			+ "attempting to contact the server. Please check your network "
			+ "connection and try again.";

	/**
	 * Create a remote service proxy to talk to the server-side Greeting service.
	 */
	private final GreetingServiceAsync greetingService = GWT
			.create(GreetingService.class);

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		HLayout mainLayout = new HLayout();  
        mainLayout.setWidth100();  
        mainLayout.setHeight100();  
  
       
        
        
  
        VLayout vLayout = new VLayout();  
        vLayout.setWidth("70%");  
  
        Label listingLabel = new Label();  
        listingLabel.setContents("Listing");  
        listingLabel.setAlign(Alignment.CENTER);  
        listingLabel.setOverflow(Overflow.HIDDEN);  
        listingLabel.setHeight("30%");  
        listingLabel.setShowResizeBar(true);  
  
        Label detailsLabel = new Label();  
        detailsLabel.setContents("Details");  
        detailsLabel.setAlign(Alignment.CENTER);  
        detailsLabel.setOverflow(Overflow.HIDDEN);  
        detailsLabel.setHeight("70%");  
  
        vLayout.addMember(listingLabel);  
        vLayout.addMember(detailsLabel);  
  
        mainLayout.addMember(vLayout);  
        mainLayout.draw();  
	}
}
